package com.example.service.impl;

import com.example.service.DeptHystrixService;
import org.springframework.stereotype.Component;

/**
 * @author: 21050134
 * @date: 2023/10/8 15:13
 * @description:
 * Hystrix 服务降级
 * 耦回退逻辑
 */
@Component
public class DeptHystrixFallBackService implements DeptHystrixService {


	@Override
	public String deptInfo_Ok(Integer id) {
		return "系统繁忙，请稍后重试！（解耦回退方法触发）";
	}

	@Override
	public String deptInfo_Timeout(Integer id) {
		return "系统繁忙，请稍后重试！（解耦回退方法触发）";
	}
}
